<extend name="common"/>
<block name="title">功能设置-QQ{$qqrow.qq}-{:C('web_name')}</block>
<block name="page">
<div class="row">
	<div class="col-xs-12">
		<ol class="breadcrumb">
			<li><a href="/"><span class="hidden-xs">{:C('web_name')}</span><span class="hidden-md hidden-lg">首页</span></a></li>
			<li><a href="{:U('user')}">用户中心</a></li>
			<li><a href="{:U('qq','qid='.$qqrow['qid'])}">{$qqrow.qq}</a></li>
			<li class="active">功能设置</li>
		</ol>
	</div>
</div>

<div class="row">
	<div class="col-xs-12 col-md-4 <if condition="$_GET['xz'] neq 'zan'">hide</if>">
		<div class="list-group">
			<div class="list-group-item list-group-item-success">说说秒赞设置<span class="right">【{:get_xz($qqrow['iszan'])}】</span></div>
			<form action="{:U('qqset','qid='.$qqrow['qid'].'&xz=zan')}" role="form" class="form-horizontal" method="post"><input type="hidden" name="do" value="zan">
			<div class="list-group-item red"><span>1、由于现在触屏班秒赞容易出现赞频繁，所以建议选择PC版！</span></div>
			<div class="list-group-item red"><span>2、选择使用人数较少的服务器，秒赞效果更加！</span></div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">说&nbsp;说&nbsp;秒&nbsp;赞&nbsp;</div>
					<select name="is"class="form-control">
						<option value ="0" selected="">关闭</option>
						<option value ="1" <if condition="$qqrow.iszan eq 1">selected=""</if>>触屏版</option>
						<option value ="2" <if condition="$qqrow.iszan eq 2">selected=""</if>>PC版(推荐)</option>
					</select>
				</div>
			</div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">服务器选择</div>
					<select name="net" class="form-control">
						<for start="1" end="C('zannet')+1"><option value ="{$i}" <if condition="$qqrow[zannet] eq $i">selected="selected"</if>>{$i}号服务器(<if condition="$i gt C('freezan')">Vip<else/>免费</if>)(<if condition="$num=get_net_count('zan',$i) and $num egt C('netnum')">已满<else/>{$num}个</if>)</option></for>
					</select>
				</div>
			</div>
			<div class="list-group-item">
				<input type="submit" name="submit" value="保存配置" class="btn btn-primary btn-block">
			</div>
			</form>
		</div>
	</div>
	<div class="col-xs-12 col-md-4 <if condition="$_GET['xz'] neq 'reply'">hide</if>">
		<div class="list-group">
			<div class="list-group-item list-group-item-success">说说秒评设置<span class="right">【{:get_xz($qqrow['isreply'])}】</span></div>
			<form action="{:U('qqset','qid='.$qqrow['qid'].'&xz=reply')}" role="form" class="form-horizontal" method="post"><input type="hidden" name="do" value="reply">
			<div class="list-group-item red"><span>1、秒评会导致空间被禁言和SID失效过快！不建议开启！</span></div>
			<div class="list-group-item red"><span>2、秒评很容易就会提示频繁，然后就不会秒评了！</span></div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">说&nbsp;说&nbsp;秒&nbsp;评&nbsp;</div>
					<select name="is"class="form-control">
						<option value ="0" selected="">关闭</option>
						<option value ="1" <if condition="$qqrow.isreply eq 1">selected=""</if>>触屏版</option>
						<option value ="2" <if condition="$qqrow.isreply eq 2">selected=""</if>>PC版</option>
					</select>
				</div>
			</div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">评&nbsp;论&nbsp;内&nbsp;容&nbsp;</div>
					<input type="text" class="form-control" name="content" placeholder="输入你要评论的内容" value="{$qqrow.replycon}">
				</div>
			</div>
			<div class="list-group-item">
				<input type="submit" name="submit" value="保存配置" class="btn btn-primary btn-block">
			</div>
			</form>
		</div>
	</div>
	<div class="col-xs-12 col-md-4 <if condition="$_GET['xz'] neq 'zf'">hide</if>">
		<div class="list-group">
			<div class="list-group-item list-group-item-success">转发说说设置<span class="right">【{:get_xz($qqrow['iszf'])}】</span></div>
			<form action="{:U('qqset','qid='.$qqrow['qid'].'&xz=zf')}" role="form" class="form-horizontal" method="post"><input type="hidden" name="do" value="zf">
			<div class="list-group-item red"><span>由于PC版会出现验证码，请选择触屏班！但是触屏班都有一个缺点就是转发多了会提示频繁！</span></div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">转&nbsp;发&nbsp;说&nbsp;说&nbsp;</div>
					<select name="is"class="form-control">
						<option value ="0" selected="">关闭</option>
						<option value ="1" <if condition="$qqrow.iszf eq 1">selected=""</if>>触屏版(推荐)</option>
						<option value ="2" <if condition="$qqrow.iszf eq 2">selected=""</if>>PC版</option>
					</select>
				</div>
			</div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">转&nbsp;发&nbsp;内&nbsp;容&nbsp;</div>
					<input type="text" class="form-control" name="content" placeholder="输入你要转发的内容" value="{$qqrow.zfcon}">
				</div>
			</div>
			<div class="list-group-item">
				<input type="submit" name="submit" value="保存配置" class="btn btn-primary btn-block">
			</div>
			</form>
		</div>
	</div>
	<?php $zfrows=M('zfdates')->field('*')->where("uin='".$qqrow['qq']."'")->select();?>
	<div class="col-xs-12 col-md-4 <if condition="$_GET['xz'] neq 'zf'">hide</if>">
		<div class="list-group">
			<div class="list-group-item list-group-item-success">包月转发QQ列表</div>
			<div class="list-group-item red"><span>1、下面的QQ发布的说说才会转发！</span></div>
			<volist name="zfrows" id="zf" key="k">
			<form action="{:U('qqset','qid='.$qqrow['qid'].'&xz=zf')}" role="form" class="form-horizontal" method="post"><input type="hidden" name="do" value="zfupdate"><input type="hidden" name="id" value="{$zf.id}">
			<div class="list-group-item">
				<div class="input-group">
					<input type="text" class="form-control" value="{$zf.zfuin}" disabled="disabled">
					<input type="text" class="form-control" name="date" placeholder="到期时间" value="{$zf.zfdate}" >
					<div class="input-group-addon"><input type="submit" value="修改"></div>
					<a  href="{:U('qqset','qid='.$qqrow['qid'].'&do=delzf&id='.$zf['id'].'&xz=zf')}" class="input-group-addon btn">删除</a>
				</div>
			</div>
			</form>
			</volist>
			<form action="{:U('qqset','qid='.$qqrow['qid'].'&xz=zf')}" role="form" class="form-horizontal" method="post"><input type="hidden" name="do" value="zfadd">
			<div class="list-group-item">
				<div class="input-group">
					<input type="text" class="form-control" name="uin" placeholder="包月转发QQ">
					<input type="text" class="form-control" name="date" placeholder="到期时间" value="{:date("Y-m-d",strtotime("+ 1 months"))}">
					<div class="input-group-addon"><input type="submit" value="添加"></div>
				</div>
			</div>
			</form>
		</div>
	</div>

	<div class="col-xs-12 col-md-4 <if condition="$_GET['xz'] neq 'shuo'">hide</if>">
		<div class="list-group">
			<div class="list-group-item list-group-item-success">自动发说说设置<span class="right">【{:get_xz($qqrow['isshuo'])}】</span></div>
			<form action="{:U('qqset','qid='.$qqrow['qid'].'&xz=shuo')}" role="form" class="form-horizontal" method="post"><input type="hidden" name="do" value="shuo">
			<div class="list-group-item red"><span>1、PC版发说说会由于空间被禁言而发送失败！</span></div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">自动发说说</div>
					<select name="is"class="form-control">
						<option value ="0" selected="">关闭</option>
						<option value ="1" <if condition="$qqrow.isshuo eq 1">selected=""</if>>触屏版(推荐)</option>
						<option value ="2" <if condition="$qqrow.isshuo eq 2">selected=""</if>>PC版</option>
					</select>
				</div>
			</div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">发说说频率</div>
					<select name="rate" class="form-control">
						<for start="15" end="91" step="5"><option value ="{$i}" <if condition="$qqrow['shuorate'] eq $i">selected="selected"</if>>{$i}分钟</option></for>
					</select>
				</div>
			</div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">文&nbsp;字&nbsp;内&nbsp;容&nbsp;</div>
					<input type="text" class="form-control" name="content" placeholder="输入说说的文字内容" value="{$qqrow.shuoshuo}">
				</div>
			</div>
			<div class="list-group-item red"><span>提示:说说图片填写 1 ，将会随机发布图片！</span></div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">说&nbsp;说&nbsp;图&nbsp;片&nbsp;</div>
					<input type="text" class="form-control" name="shuopic" placeholder="输入图片说说图片" value="{$qqrow.shuopic}">
				</div>
			</div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">显&nbsp;示&nbsp;机&nbsp;型&nbsp;</div>
					<input type="text" class="form-control" name="shuophone" placeholder="输入发布说说的显示机型" value="{$qqrow.shuophone}">
				</div>
			</div>
			<div class="list-group-item">
				<input type="submit" name="submit" value="保存配置" class="btn btn-primary btn-block">
			</div>
			</form>
		</div>
	</div>
	<div class="col-xs-12 col-md-4 <if condition="$_GET['xz'] neq 'qd'">hide</if>">
		<div class="list-group">
			<div class="list-group-item list-group-item-success">空间签到设置<span class="right">【{:get_xz($qqrow['isqd'])}】</span></div>
			<form action="{:U('qqset','qid='.$qqrow['qid'].'&xz=qd')}" role="form" class="form-horizontal" method="post"><input type="hidden" name="do" value="qd">
			<div class="list-group-item red"><span>1、签到图片默认都是黄历签到！</span></div>
			<div class="list-group-item red"><span>2、每天签到3次以防漏签！</span></div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">空&nbsp;间&nbsp;签&nbsp;到&nbsp;</div>
					<select name="is"class="form-control">
						<option value ="0" selected="">关闭</option>
						<option value ="1" <if condition="$qqrow.isqd eq 1">selected=""</if>>触屏版</option>
						<option value ="2" <if condition="$qqrow.isqd eq 2">selected=""</if>>PC版</option>
					</select>
				</div>
			</div>
			<div class="list-group-item">
				<div class="input-group">
					<div class="input-group-addon">签&nbsp;到&nbsp;内&nbsp;容&nbsp;</div>
					<input type="text" class="form-control" name="content" placeholder="输入你要评论的内容" value="{$qqrow.qdcon}">
				</div>
			</div>
			<div class="list-group-item">
				<input type="submit" name="submit" value="保存配置" class="btn btn-primary btn-block">
			</div>
			</form>
		</div>
	</div>
	<div class="col-xs-12 col-md-4">
		<div class="list-group">
			<div class="list-group-item list-group-item-success">使用说明</div>
			<form  role="form" class="form-horizontal" method="post">
			<div class="list-group-item red"><span>所有功能的内容可以使用以下标签</span></div>
			<div class="list-group-item red"><span>[表情]&nbsp;&nbsp;随机表情<br>[语录]&nbsp;&nbsp;随机语录<br>[时间]&nbsp;&nbsp;当前时间</span></div>
			</form>
		</div>
	</div>


</div>
</block>